/*
 * @Authoryour name
 * @Date2021-01-03 17:12:11
 * @LastEditTime2021-01-03 17:12:11
 * @LastEditorsyour name
 * @DescriptionIn User Settings Edit
 * @FilePath\ART-Pi_STM32H750_Bootloader\User\bootloader\uart\uart_if.c
 */ 
#include "uart_if.h"


inline uint8_t  uart_if_receive(uint8_t *pdata, uint16_t size, uint32_t timeout)
{
    bsp_uart_receive(pdata, size, timeout);
}

inline uint8_t uart_if_transmit(uint8_t *pdata, uint16_t size, uint32_t timeout)
{
    bsp_uart_transmit(pdata, size, timeout);
}

inline void uart_if_flush_drregister(void)
{
    bsp_uart_flush_drregister();
}

inline uint32_t uart_if_get_state(void)
{
    return bsp_uart_get_state();
}

inline void uart_if_set_state(uint32_t state)
{
    bsp_uart_set_state(state);
}


